package com.hmall.api.cart;

import com.hmall.api.cart.fallback.CartClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;

/**
 * @author: wqy
 * @Date: 2025/09/04 11:14
 * @Description:
 */
@FeignClient(name="cart-service",path = "/carts",fallbackFactory = CartClientFallbackFactory.class)
public interface CartClient {

    @DeleteMapping
    void removeByItemIds(@RequestParam("ids") Collection<Long> itemIds);


}
